com.supermap.ar.areffect.preset
类 Skybox
- java.lang.Object
-
- com.supermap.ar.areffect.preset.BaseShape<Shape>
-
- com.supermap.ar.areffect.preset.Skybox
-
-
嵌套类概要
嵌套类 限定符和类型 类和说明 static class
Skybox.DataType
数据类型-
从类继承的嵌套类/接口 com.supermap.ar.areffect.preset.BaseShape
BaseShape.MatType, BaseShape.Mode
-
-
构造器概要
构造器 构造器和说明 Skybox(BaseShape.MatType matType)
构造方法
-
方法概要
所有方法 实例方法 具体方法 限定符和类型 方法和说明 void
drawSkyBox(float radius)
绘制球体void
drawSkyBox(Vector offset, float radius)
绘制球体AREffectElement
getParentElement()
获取父节点元素void
loadSource(android.graphics.Bitmap bitmap)
加载资源void
loadSource(int resourceId)
加载资源void
loadSource(android.media.MediaPlayer mediaPlayer)
加载资源void
setParentNode(AREffectElement element)
设置父节点void
setParentNode(EffectView arView)
设置父节点Skybox
setTextureMap(android.graphics.Bitmap textureMap)
设置纹理图-
从类继承的方法 com.supermap.ar.areffect.preset.BaseShape
clear, getColor, getColorRGBA, getMetallic, getRadius, getReflectance, getRoughness, getSelectionColor, getSelectionTextureMap, getShapeMaterial, getShapeStyle, getTextureMap, isRenderable, isSelected, isShadowCaster, isShadowReceiver, select, setColor, setColor, setColor, setMetallic, setRadius, setReflectance, setRenderable, setRoughness, setSelectionColor, setSelectionTextureMap, setShadowCaster, setShadowReceiver, setShapeStyle, unSelect, updateMaterial
-
-
-
-
构造器详细资料
-
Skybox
public Skybox(BaseShape.MatType matType)
构造方法- 参数:
matType
- 材质类型(透明/不透明)
-
-
方法详细资料
-
loadSource
public void loadSource(android.media.MediaPlayer mediaPlayer)
加载资源- 参数:
mediaPlayer
-
-
loadSource
public void loadSource(android.graphics.Bitmap bitmap)
加载资源- 参数:
bitmap
-
-
loadSource
public void loadSource(int resourceId)
加载资源- 参数:
resourceId
-
-
drawSkyBox
public void drawSkyBox(Vector offset, float radius)
绘制球体- 参数:
offset
- 偏移量(相对父节点)radius
- 球半径
-
drawSkyBox
public void drawSkyBox(float radius)
绘制球体- 参数:
radius
- 球半径
-
setTextureMap
public Skybox setTextureMap(android.graphics.Bitmap textureMap)
设置纹理图
-
setParentNode
public void setParentNode(AREffectElement element)
设置父节点- 参数:
element
-
-
setParentNode
public void setParentNode(EffectView arView)
设置父节点- 参数:
arView
-
-
getParentElement
public AREffectElement getParentElement()
获取父节点元素- 返回:
-
-